package com.evan.review.architecture.components.models;

/**
 * 用户模型类
 * 用于DataBinding示例
 */
public class User {
    
    private String name;
    private String email;
    private int age;
    
    public User(String name, String email, int age) {
        this.name = name;
        this.email = email;
        this.age = age;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public int getAge() {
        return age;
    }
    
    public void setAge(int age) {
        this.age = age;
    }
    
    /**
     * 获取用户简介
     */
    public String getBio() {
        return String.format("%s, %d岁", name, age);
    }
} 